<template>
  <div style="padding: 10px 15px;" class="overflowY">
       <iframe style="width: 100%; height: 100%" :src="viewDocIframeSrc"></iframe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      record: this.$route.params.record,
      viewDocIframeSrc: './static/pdf/web/viewer.html'
    }
  },
  computed: {},
  filters: {},
  components: {},
  /**
   * 组件创建完成后，查询列表数据
   */
  created() {
    this.fetchData()
  },
  mounted() {
  },
  methods: {
    fetchData() { // 获取内容
      let tempSrc = './static/pdf/web/viewer.html?'
      tempSrc += 'file=' + encodeURIComponent(this.record.downloadpdfPath)
      console.log(tempSrc)
      this.viewDocIframeSrc = tempSrc
    }
  }
}
</script>
<style scoped>
</style>

